package com.skynet.supervision.beans.request.users;

import com.skynet.supervision.aop.validate.GoodString;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;

@Data
@ApiModel
public class UserAddRequest implements Serializable {
    @Serial
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "用户名", required = true, example = "test")
    @GoodString
    private String account;

    /**
     * 密码
     */
    @ApiModelProperty(value = "密码", required = true, example = "test")
    @GoodString
    private String password;

    @ApiModelProperty(value = "姓名", required = true, example = "张三")
    @GoodString
    private String name;

    /**
     * 性别
     */
    @ApiModelProperty(value = "性别", required = false, example = "test")
    @GoodString(required = false)
    private String sex;

}
